package com.caigou.bean.cms.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OperationLog {
    private int id;
    private String moduleName;//模块名称
    private String moduleId;//模块id
    private String operationType;//操作类型：增加；删除；修改三种类型
    private String operationDesc;//操作描述
    private String operationMethod;//操作方法
    private String operationUrl;//操作url
    private String requestParam;//请求参数
    private String responseParam;//返回参数
    private String userId;//操作用户id
    private String ip;
    private Date operationTime;//操作时间
    private String objectName;//具体的操作对象名称，如稿件标题等
    private String objectId;//操作对象id，如操作对象是系统消息，此字段即为SystemMessage对象的messageId
    private Boolean saveStatus = true;// 用于判定当前方法是否进行存储
    //many2one
    private UserBaseInfo userBaseInfo;
}
